define(function(require, exports, module) {
  var PostMessageView = Backbone.View.extend({
    el: $('#mob-container'),
    events: {

    },
    initialize: function() {
      this.render();
      this.createCheckboxs();
    },
    render: function() {
      var h = [];
      h.push('<div class="mob-sending-detail">');
      h.push('<div class="mob-sending-btn-top-container">');
      h.push('<div class="mob-sending-btn-top mob-btn-grey">拼箱信息</div>');
      h.push('<div class="mob-sending-btn-top mob-btn-orange">历史信息</div>');
      h.push('<div class="mob-sending-btn-top mob-btn-blue">发布管理</div>');
      h.push('</div>');
      h.push('<div class="mob-sending-detail-textarea"><textarea placeholder="请输入信息内容，例如： 散货外发 上海到杭州15吨 要大箱 速递 谢谢"/></div>');
      h.push('</div>');

      h.push('<div class="mob-sending-contact-container">');
      h.push('<div id="mob-sending-contact-mobile"></div>');
      h.push('<div id="mob-sending-contact-address"></div>');
      h.push('<div id="mob-sending-contact-tel"></div>');
      h.push('</div>');

      h.push('<div class="mob-sending-interval">');
      h.push('<div id="mob-sending-auto-send"></div>');
      h.push('<div class="mob-sending-interval-btn-container">');
      h.push('<div class="mob-sending-interval-btn">每三分钟重发一次</div>');
      h.push('<div class="mob-sending-interval-btn">重发30次</div>');
      h.push('</div>');
      h.push('</div>');

      h.push('<div class="mob-btn-container">');
      h.push('<div class="mob-btn mob-btn-submit">发布</div>');
      h.push('</div>');
      this.$el.append(h.join(''));
    },
    createCheckboxs: function() {
      new CheckBox({
        el: '#mob-sending-contact-mobile',
        lable: '手机：18918921563',
        checked: false
      });
      new CheckBox({
        el: '#mob-sending-contact-address',
        lable: '详细地址',
        checked: false
      });
      new CheckBox({
        el: '#mob-sending-contact-tel',
        lable: '电话：010-5856072',
        checked: false
      });
      new CheckBox({
        el: '#mob-sending-auto-send',
        lable: '自动重发',
        checked: true
      });
    }
  });

  return PostMessageView;
});
